package jp.oesf.malfoy.ui;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

public class DetailUi extends Activity {

	String rssTag="";

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.detail);

		Intent intent=getIntent();
		rssTag=intent.getStringExtra("rssTag");

		TextView textViewDetail = (TextView) findViewById(R.id.url_detail);
		textViewDetail.setText(rssTag);
	}

	public void onClickReturnButton(View view){
		Intent intent =new Intent(this,MainUi.class);
		startActivity(intent);
		Toast.makeText(this, "メイン画面に戻ります", Toast.LENGTH_LONG).show();
//		finish();
	}
    public void okButton(View v){
    	EditText editText=(EditText)findViewById(R.id.editText1);
    	Intent intent=new Intent(this,DammyUi.class);
    	intent.putExtra("stringUrl",editText.getText().toString());
    	startActivity(intent);
    }

}
